module im_4k(addr, dout); 

    input   [11:0] addr;       

    output  [31:0] dout;
    
    reg   [31:0] dout;
    reg     [31:0] im[1023:0];
    
    initial
    begin
        $readmemh("./mytest.txt", im,0,1023);
    end
    always @(*) begin
         assign dout = im[addr[11:2]];
    end
   

endmodule
